package br.com.pentagrama.util;

import java.io.IOException;

import br.com.pentagrama.dto.Parametros;

public class TransferenciaUtil {
	public Parametros parametros;

	private TransferenciaUtil() {
	}
	
	public static byte[] getBytes() throws IOException {
		int tamanhoPacote = 32*1024;
		byte[] data = new byte[tamanhoPacote];
		for(int i = 0; i < tamanhoPacote ; i++) {
			data[i] = 'c';
		}
		return data;
	}
	
	public static byte[] convertStreamToBytes(java.io.InputStream is) {
	    java.util.Scanner s = new java.util.Scanner(is).useDelimiter("\\A");
	    String retorno = s.hasNext() ? s.next() : "";
	    return retorno.getBytes();
	}

}